<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ include file="/jsp/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>主页</title>
<!--  试试version怎么用的      <link rel="stylesheet" type="text/css" href="${baseUrlStatic}/css/user/reset.css?ver=${version}"/>-->
<link href="${baseUrlStatic}/css/Bootstrap/bootstrap.min.css" rel="stylesheet">

<style type="text/css">
body, textarea, input, select, button {
    color: #333333;
    font-family: "Microsoft Yahei","微软雅黑","宋体";
    font-size: 12px;
}
.main-content{
	margin:0 20px;
}
.summary {
    height: 50px;
    line-height: 40px;
    margin-top: 10px;
}
.summary .date {
    color: #666666;
    float: left;
    margin-left: 5px;
}

.summary .search .input-text {
    border-radius: 0 0 0 0;
    border-right: medium none;
    width: 235px;
}
.input-text, .input-area {
    border: 1px solid #DADADA;
    border-radius: 3px 3px 3px 3px;
    box-shadow: 0 1px #F7F7F7 inset;
    height: 30px;
    padding: 5px;
}

.summary .search .submit-search {
    background: url("/assets/images/sprite/icons.png") no-repeat scroll -36px -77px transparent;
    border: 1px solid #CCCCCC;
    cursor: pointer;
    float: left;
    height: 28px;
    overflow: hidden;
    text-indent: -9999px;
    width: 35px;
}
#search-btn{
 	background-color: #FFFFFF;
    border-color: #CCCCCC;
    color: #333333;
    height: 28px;
    float: right;
    position: relative;
    bottom: 23px;
}
.form-control {
    height: 28px;
    position: relative;
    right: 30px;
    bottom: -5px;
}

.module {
    border: 1px solid #CCCCCC;
    margin-bottom: 15px;
}
.module-head {
    background: url("/assets/images/bg/module-head.png") repeat-x scroll 0 0 #F5F5F5;
    height: 36px;
    line-height: 36px;
    padding: 0 10px;
}

.module .module-head .title {
    cursor: pointer;
    font-weight: normal;
}

.module .module-body {
    background: none repeat scroll 0 0 #FFFFFF;
    border-top: 1px solid #CCCCCC;
    padding: 8px 15px;
}

.horizon-line {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    border-color: -moz-use-text-color -moz-use-text-color #DDDDDD;
    border-image: none;
    border-style: none none dashed;
    border-width: medium medium 1px;
    font-size: 0;
    height: 0;
    line-height: 0;
    margin: 20px 0;
    overflow: hidden;
}

.module .module-body .no-data {
    color: #6F6F6F;
    font-size: 20px;
    padding: 45px 0;
    text-align: center;
}

.ellipsis {
    display: block;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

</style>
</head>
<body>

	<div class="main-content">
		<div class="summary">
		<span class="date">
			<span class="glyphicon glyphicon-calendar"></span> 2013-09-12
		</span>
		<div class="search pull-right">
			      <input type="text" class="form-control" placeholder="请输入会议主题...">
<!--			      <span class="input-group-btn">-->
<!--			        <button id="search-btn" class="btn" type="button">-->
<!--			        	<span class="glyphicon glyphicon-search"></span> -->
<!--			        </button>-->
<!--			      </span>-->
				  <button id="search-btn" class="btn btn-default" type="button"><span class="glyphicon glyphicon-search"></span> </button>
		</div>
		</div>
		
		<c:if test="${empty userList}">
		<div class="module meeting-module">
			<div class="module-head">
				<span class="title">用户列表</span>
			</div>
			<div class="module-body">
				<p class="no-data">
					<i class="icon icon-nothing"></i>
					您好，当前系统中尚无用户。
				</p>
			</div>
		</div>
		</c:if>	
		<c:if test="${!empty userList}">
		<div class="module meeting-module">
			<div class="module-head">
				<span class="title">用户列表</span>
			</div>
			<div class="module-body table-responsive" style="height: 400px;">
			
		      <table class="table table-striped table-hover">
		        <thead>
		          <tr>
		            <th>用户名</th>
		            <th>email</th>
		            <th>用户状态</th>
		            <th>first name</th>
		            <th>开始时间</th>
		            <th>结束时间</th>
		            <th  class="text-center">操作</th>
		          </tr>
		        </thead>
		        <tbody>
		        <c:forEach var="user" items="${userList}" varStatus="status">
		          <tr>
		            <td style="width: 20%;"><span class="ellipsis" title="test">${user.userName }</span></td>
		            <td style="width: 8%;">${user.email }</td>
		            <td style="width: 22%;"><span class="ellipsis" style="max-width: 200px;" title="test">视频会议,视频会议视频会议,视频会议视频会议,视频会议</span></td>
		            <td style="width: 10%;">预约成功</td>
		            <td style="width: 10%;">2013-07-05</td>
		            <td style="width: 10%;">2013-07-05</td>
		            <td  class="text-center" style="width: 20%;">@mdo</td>
		          </tr>
	            </c:forEach>
		        </tbody>
		      </table>
			</div>
			<div class="module-head" style="height:45px;line-height:45px;">
				<span class="title" style="margin-left: 20px;">共 19 页, 有 185 条记录</span>
				<ul class="pagination" style="float: right;margin: 8px 30px;">
<!--			        <li><a href="#">&laquo;</a></li>-->
			        <li><a href="#">上一页</a></li>
			        <li class="active"><a href="#">1</a></li>
			        <li><a href="#">2</a></li>
			        <li><a href="#">3</a></li>
			        <li><a href="#">4</a></li>
			        <li><a href="#">5</a></li>
<!--			        <li><a href="#">&raquo;</a></li>-->
			        <li class="disabled"><a href="#">下一页</a></li>
		      	</ul>
			</div>
		</div>
		</c:if>	
		
	</div>


    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
   	<script type="text/javascript" src="${baseUrlStatic}/js/Bootstrap/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="${baseUrlStatic}/js/Bootstrap/bootstrap.min.js"></script>
</body>
</html>
